package top.v5it.japi.plus.core.exception;


import top.v5it.japi.plus.core.api.ResultStatus;
import top.v5it.japi.plus.core.api.ResultStatusTemplate;

/**
 * 授权异常
 *
 * @author zhanpu
 * @date 21-1-22
 */
public class JapiAuthorizedException extends JapiException {

    private static final long serialVersionUID = -3250860330567366164L;

    public JapiAuthorizedException(ResultStatusTemplate resultStatusTemplate, String messageTemplate, Object... params) {
        super(resultStatusTemplate, messageTemplate, params);
    }

    public JapiAuthorizedException() {
        this(ResultStatus.NO_AUTH, "Unauthorized");
    }

    public JapiAuthorizedException(String messageTemplate, Object... params) {
        this(ResultStatus.NO_AUTH, messageTemplate, params);
    }
}
